---------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/damienbol/Dropbox/Str competition/submission pp/publication PSRM/Replication data/party_voter_experimen
> t_psrm.log
  log type:  text
 opened on:   6 Jun 2016, 16:49:16

. 
end of do-file

. do "/var/folders/bd/jbttpxq50_ld4_0splvtwtq40000gq/T//SD02012.000000"

. use "/Users/damienbol/Dropbox/Str competition/submission pp/publication PSRM/Replication data/party_voter_experiment_psrm
> .dta", replace

. 
. * Structure of the dataset:
. * The unit of analysis of the dataset is the experimental subject per election. As we conducted 4 experimental sesions of
>  20 elections with 17 experimental subjects, there are 1,360 data points (4 x 20 x 17 = 1,360).
. 
. * Variables:
. * subject_id=unique identifier of experimental subjects
. * election_id=unique identifier of elections
. * session=unique identifier of sessions
. * election=election identifier per session (from 1 to 20)
. * subject=subject identifier per session (from 1 to 17)
. * series=identifier of election series. Every 5 elections the role of experimental subjects were reshuffled, these 5 elec
> tions form a series. There were 4 series per session, so the variable goes from 1 to 4
. * uniform_distribution=dummy variable capturing whether the election was held under an uniform distribution of party posi
> tions or not (i.e. central distribution, see paper)
. * equal_repartition=dummy variable capturing whether the election was held under an equal distribution of party gains or 
> not (i.e. unequal distribution, see paper)
. * role_party=dummy variable capturing whether the subjects played the role of a party or not (i.e. a voter)
. * party=variable capturing, for subjects playing the role of parties, the subject's party: party A (coded 1), B (coded 2)
> , C (coded 3), D (coded 4), E (coded 5), F (coded 6).
. * voter=variable capturing, for subjects playing the role of voters, the subject's position on the 0-10 scale
. * initiator=dummy variable capturing, for subjects playing the role of parties, whether she was the initiator of the agre
> ement or not (see paper).
. * proposal_type=variable capturing, for subjects playing the role of parties, the type of proposal made by the initiator:
>  no proposal (coded 0), the initiator enters (coded 1), the initiator exits (coded 2).
. * response_type=dummy variable capturing, for subjects playing the role of parties, whether the non-initiating accepted o
> r the proposal or not (i.e. rejected)
. * vote=variable capturing, for subjects playing the role of voters, for which parties they voted: party A (coded 1), B (c
> oded 2), C (coded 3), D (coded 4), E (coded 5), F (coded 6).
. * win=variable capturing, for subjects playing the role of parties, whether they win the election or not
. 
. *************************
. * Constructing variables*
. *************************
. 
. * Creating a variable capturing whether party pairs are central or extreme
. ***************************************************************************
. 
. gen party_central=0 if role_party==1
(880 missing values generated)

. replace party_central=1 if party==3 & role_party==1
(80 real changes made)

. replace party_central=1 if party==4 & role_party==1
(80 real changes made)

. 
. * Creating a variable capturing how far is the voter from the center of the ideological spectrum
. **************************************************************************************************
. 
. gen voter_central=abs(voter-5)
(480 missing values generated)

. 
. * Creating a viable vote variable (theoretical)
. ************************************************
. 
. * 1. Creating variables capturing whether parties participate in the election
. 
. gen stay=.
(1360 missing values generated)

. replace stay=0 if response_type==1 & proposal_type==1 & initiator==0
(78 real changes made)

. replace stay=0 if response_type==1 & proposal_type==2 & initiator==1
(61 real changes made)

. replace stay=1 if stay==.
(1221 real changes made)

. 
. gen stay_party1=0

. gen stay_party2=0

. gen stay_party3=0

. gen stay_party4=0

. gen stay_party5=0

. gen stay_party6=0

. 
. replace stay_party1=1 if party==1 & stay==1
(42 real changes made)

. replace stay_party2=1 if party==2 & stay==1
(72 real changes made)

. replace stay_party3=1 if party==3 & stay==1
(55 real changes made)

. replace stay_party4=1 if party==4 & stay==1
(56 real changes made)

. replace stay_party5=1 if party==5 & stay==1
(64 real changes made)

. replace stay_party6=1 if party==6 & stay==1
(52 real changes made)

. 
. bysort election_id: egen stay_party1_all=total(stay_party1)

. bysort election_id: egen stay_party2_all=total(stay_party2)

. bysort election_id: egen stay_party3_all=total(stay_party3)

. bysort election_id: egen stay_party4_all=total(stay_party4)

. bysort election_id: egen stay_party5_all=total(stay_party5)

. bysort election_id: egen stay_party6_all=total(stay_party6)

. 
. * 2. Creating a variable capturing whether the vote is viable (theoretically)
. 
. gen viable_vote_theory=0

. replace viable_vote_theory=1 if vote==3
(181 real changes made)

. replace viable_vote_theory=1 if vote==4
(176 real changes made)

. replace viable_vote_theory=1 if vote==2 & stay_party3_all==0
(75 real changes made)

. replace viable_vote_theory=1 if vote==5 & stay_party4_all==0
(61 real changes made)

. replace viable_vote_theory=1 if vote==2 & stay_party4_all==0 & stay_party5_all==0 & uniform_distribution==1
(6 real changes made)

. replace viable_vote_theory=1 if vote==5 & stay_party3_all==0 & stay_party2_all==0 & uniform_distribution==1
(2 real changes made)

. replace viable_vote_theory=1 if vote==1 & stay_party3_all==0 & stay_party2_all==0  
(9 real changes made)

. replace viable_vote_theory=1 if vote==6 & stay_party4_all==0 & stay_party5_all==0  
(14 real changes made)

. replace viable_vote_theory=. if role_party==1
(480 real changes made, 480 to missing)

. 
. * Creating a viable vote variable (empirical)
. *********************************************
. 
. * 1. Creating variables capturing the number of votes received by the parties
. 
. gen vote_party1=0

. gen vote_party2=0

. gen vote_party3=0

. gen vote_party4=0

. gen vote_party5=0

. gen vote_party6=0

. 
. replace vote_party1=1 if vote==1
(65 real changes made)

. replace vote_party2=1 if vote==2
(217 real changes made)

. replace vote_party3=1 if vote==3
(181 real changes made)

. replace vote_party4=1 if vote==4
(176 real changes made)

. replace vote_party5=1 if vote==5
(149 real changes made)

. replace vote_party6=1 if vote==6
(83 real changes made)

. 
. bysort election_id: egen vote_party1_total=total(vote_party1)

. bysort election_id: egen vote_party2_total=total(vote_party2)

. bysort election_id: egen vote_party3_total=total(vote_party3)

. bysort election_id: egen vote_party4_total=total(vote_party4)

. bysort election_id: egen vote_party5_total=total(vote_party5)

. bysort election_id: egen vote_party6_total=total(vote_party6)

. 
. * 2. Creating variables capturing which party(-ies) received the maximum number of votes (and was therefore viable empiri
> cally)
. 
. gen max_vote_round1=max(vote_party1_total, vote_party2_total, vote_party3_total, vote_party4_total, vote_party5_total, vo
> te_party6) 

. 
. gen party1_viable=0

. gen party2_viable=0

. gen party3_viable=0

. gen party4_viable=0

. gen party5_viable=0

. gen party6_viable=0

. 
. replace party1_viable=1 if vote_party1_total==max_vote_round1
(153 real changes made)

. replace party2_viable=1 if vote_party2_total==max_vote_round1
(459 real changes made)

. replace party3_viable=1 if vote_party3_total==max_vote_round1
(442 real changes made)

. replace party4_viable=1 if vote_party4_total==max_vote_round1
(391 real changes made)

. replace party5_viable=1 if vote_party5_total==max_vote_round1
(136 real changes made)

. replace party6_viable=1 if vote_party6_total==max_vote_round1
(34 real changes made)

. 
. * 3. Creating a variable capturing how many parties recieved the maximum number of votes
. 
. gen count_party_viable_round1=party1_viable+party2_viable+party3_viable+party4_viable+party5_viable+party6_viable

. 
. * 4. Creating a variable capturing the second maximum number of votes obtained by a party
. 
. gen max_vote_round2=.
(1360 missing values generated)

. replace max_vote_round2=max(vote_party1_total, vote_party2_total, vote_party3_total, vote_party4_total, vote_party5_total
> ) if party6_viable==1 & count_party_viable_round1==1
(0 real changes made)

. replace max_vote_round2=max(vote_party1_total, vote_party2_total, vote_party3_total, vote_party4_total, vote_party6_total
> ) if party5_viable==1 & count_party_viable_round1==1
(85 real changes made)

. replace max_vote_round2=max(vote_party1_total, vote_party2_total, vote_party3_total, vote_party5_total, vote_party6_total
> ) if party4_viable==1 & count_party_viable_round1==1
(306 real changes made)

. replace max_vote_round2=max(vote_party1_total, vote_party2_total, vote_party4_total, vote_party5_total, vote_party6_total
> ) if party3_viable==1 & count_party_viable_round1==1
(340 real changes made)

. replace max_vote_round2=max(vote_party1_total, vote_party3_total, vote_party4_total, vote_party5_total, vote_party6_total
> ) if party2_viable==1 & count_party_viable_round1==1
(340 real changes made)

. replace max_vote_round2=max(vote_party2_total, vote_party3_total, vote_party4_total, vote_party5_total, vote_party6_total
> ) if party1_viable==1 & count_party_viable_round1==1
(85 real changes made)

. 
. * 5. Updating the (empirical) viable vote variables for elections in which there were only one party with the maximum num
> ber of votes
. 
. replace party1_viable=1 if vote_party1_total==max_vote_round2 & count_party_viable_round1==1
(119 real changes made)

. replace party2_viable=1 if vote_party2_total==max_vote_round2 & count_party_viable_round1==1
(357 real changes made)

. replace party3_viable=1 if vote_party3_total==max_vote_round2 & count_party_viable_round1==1
(238 real changes made)

. replace party4_viable=1 if vote_party4_total==max_vote_round2 & count_party_viable_round1==1
(255 real changes made)

. replace party5_viable=1 if vote_party5_total==max_vote_round2 & count_party_viable_round1==1
(493 real changes made)

. replace party6_viable=1 if vote_party6_total==max_vote_round2 & count_party_viable_round1==1
(170 real changes made)

. 
. * 6. Checking on average how many parties were viable (empirically)
. 
. gen count_party_viable_round2=party1_viable+party2_viable+party3_viable+party4_viable+party5_viable+party6_viable

. 
. tab count_party_viable_round2

count_party |
_viable_rou |
        nd2 |      Freq.     Percent        Cum.
------------+-----------------------------------
          2 |        935       68.75       68.75
          3 |        340       25.00       93.75
          4 |         68        5.00       98.75
          5 |         17        1.25      100.00
------------+-----------------------------------
      Total |      1,360      100.00

. 
. * 7. Creating a variable caputring whether the vote is viable (empirically)
. 
. gen viable_vote_empirics=0

. replace viable_vote_empirics=1 if vote==1 & party1_viable==1
(47 real changes made)

. replace viable_vote_empirics=1 if vote==2 & party2_viable==1
(185 real changes made)

. replace viable_vote_empirics=1 if vote==3 & party3_viable==1
(160 real changes made)

. replace viable_vote_empirics=1 if vote==4 & party4_viable==1
(152 real changes made)

. replace viable_vote_empirics=1 if vote==5 & party5_viable==1
(115 real changes made)

. replace viable_vote_empirics=1 if vote==6 & party6_viable==1
(37 real changes made)

. replace viable_vote_empirics=. if role_party==1
(480 real changes made, 480 to missing)

. 
. * Calculating a desertion variable (with empirical definition of strategic voting)
. **********************************************************************************
. 
. * 1. Creating variables capturing whether each party is a sincere vote or not 
. 
. gen party1_sincere=0

. gen party2_sincere=0

. gen party3_sincere=0

. gen party4_sincere=0

. gen party5_sincere=0

. gen party6_sincere=0

. 
. replace party1_sincere=1 if voter==0 & stay_party1_all==1
(42 real changes made)

. replace party2_sincere=1 if voter==0 & stay_party1_all==0
(38 real changes made)

. replace party6_sincere=1 if voter==10 & stay_party6_all==1
(52 real changes made)

. replace party5_sincere=1 if voter==10 & stay_party6_all==0
(28 real changes made)

. 
. replace party1_sincere=1 if voter==1 & stay_party1_all==1
(42 real changes made)

. replace party2_sincere=1 if voter==1 & stay_party2_all==1 & uniform_distribution==1
(37 real changes made)

. replace party2_sincere=1 if voter==1 & stay_party1_all==0 & uniform_distribution==0
(17 real changes made)

. 
. replace party6_sincere=1 if voter==9 & stay_party6_all==1
(52 real changes made)

. replace party5_sincere=1 if voter==9 & stay_party5_all==1 & uniform_distribution==1
(34 real changes made)

. replace party5_sincere=1 if voter==9 & stay_party6_all==0 & uniform_distribution==0
(12 real changes made)

. 
. replace party2_sincere=1 if voter==2 & stay_party2_all==1 & uniform_distribution==1
(37 real changes made)

. replace party1_sincere=1 if voter==2 & stay_party2_all==0 & uniform_distribution==1
(3 real changes made)

. replace party3_sincere=1 if voter==2 & stay_party2_all==0 & uniform_distribution==1 & stay_party3_all==1
(2 real changes made)

. replace party1_sincere=1 if voter==2 & stay_party1_all==1 & uniform_distribution==0
(23 real changes made)

. replace party2_sincere=1 if voter==2 & stay_party1_all==0 & uniform_distribution==0
(17 real changes made)

. 
. replace party5_sincere=1 if voter==8 & stay_party5_all==1 & uniform_distribution==1
(34 real changes made)

. replace party6_sincere=1 if voter==8 & stay_party5_all==0 & uniform_distribution==1
(6 real changes made)

. replace party4_sincere=1 if voter==8 & stay_party5_all==0 & uniform_distribution==1 & stay_party4_all==1
(3 real changes made)

. replace party6_sincere=1 if voter==8 & stay_party6_all==1 & uniform_distribution==0
(28 real changes made)

. replace party5_sincere=1 if voter==8 & stay_party6_all==0 & uniform_distribution==0
(12 real changes made)

. 
. replace party2_sincere=1 if voter==3 & stay_party2_all==1 & uniform_distribution==1
(37 real changes made)

. replace party3_sincere=1 if voter==3 & stay_party3_all==1 & uniform_distribution==1
(31 real changes made)

. replace party1_sincere=1 if voter==3 & stay_party2_all==0 & stay_party3_all==0 & uniform_distribution==1
(1 real change made)

. replace party4_sincere=1 if voter==3 & stay_party2_all==0 & stay_party3_all==0 & uniform_distribution==1
(1 real change made)

. replace party2_sincere=1 if voter==3 & stay_party2_all==1 & uniform_distribution==0
(35 real changes made)

. replace party1_sincere=1 if voter==3 & stay_party2_all==0 & uniform_distribution==0
(5 real changes made)

. replace party3_sincere=1 if voter==3 & stay_party2_all==0 & uniform_distribution==0 & stay_party3_all==1
(3 real changes made)

. 
. replace party5_sincere=1 if voter==7 & stay_party5_all==1 & uniform_distribution==1
(34 real changes made)

. replace party4_sincere=1 if voter==7 & stay_party4_all==1 & uniform_distribution==1
(27 real changes made)

. replace party6_sincere=1 if voter==7 & stay_party5_all==0 & stay_party4_all==0 & uniform_distribution==1
(3 real changes made)

. replace party3_sincere=1 if voter==7 & stay_party5_all==0 & stay_party4_all==0 & uniform_distribution==1
(3 real changes made)

. replace party5_sincere=1 if voter==7 & stay_party5_all==1 & uniform_distribution==0
(30 real changes made)

. replace party6_sincere=1 if voter==7 & stay_party5_all==0 & uniform_distribution==0
(10 real changes made)

. replace party4_sincere=1 if voter==7 & stay_party5_all==0 & uniform_distribution==0 & stay_party4_all==1
(8 real changes made)

. 
. replace party3_sincere=1 if voter==4 & stay_party3_all==1
(55 real changes made)

. replace party4_sincere=1 if voter==4 & stay_party3_all==0 & uniform_distribution==1
(9 real changes made)

. replace party2_sincere=1 if voter==4 & stay_party3_all==0 & uniform_distribution==1 & stay_party2_all==1
(8 real changes made)

. replace party2_sincere=1 if voter==4 & stay_party3_all==0 & stay_party2_all==1 & uniform_distribution==0
(14 real changes made)

. replace party1_sincere=1 if voter==4 & stay_party3_all==0 & stay_party2_all==0 & uniform_distribution==0
(2 real changes made)

. replace party4_sincere=1 if voter==4 & stay_party3_all==0 & stay_party2_all==0 & uniform_distribution==0
(2 real changes made)

. 
. replace party4_sincere=1 if voter==6 & stay_party4_all==1
(56 real changes made)

. replace party3_sincere=1 if voter==6 & stay_party4_all==0 & uniform_distribution==1
(13 real changes made)

. replace party5_sincere=1 if voter==6 & stay_party4_all==0 & uniform_distribution==1 & stay_party5_all==1
(10 real changes made)

. replace party5_sincere=1 if voter==6 & stay_party4_all==0 & stay_party5_all==1 & uniform_distribution==0
(9 real changes made)

. replace party6_sincere=1 if voter==6 & stay_party4_all==0 & stay_party5_all==0 & uniform_distribution==0
(2 real changes made)

. replace party3_sincere=1 if voter==6 & stay_party4_all==0 & stay_party5_all==0 & uniform_distribution==0
(2 real changes made)

. 
. replace party3_sincere=1 if voter==5 & stay_party3_all==1
(55 real changes made)

. replace party4_sincere=1 if voter==5 & stay_party4_all==1
(56 real changes made)

. 
. replace party1_sincere=. if role_party==1
(480 real changes made, 480 to missing)

. replace party2_sincere=. if role_party==1
(480 real changes made, 480 to missing)

. replace party3_sincere=. if role_party==1
(480 real changes made, 480 to missing)

. replace party4_sincere=. if role_party==1
(480 real changes made, 480 to missing)

. replace party5_sincere=. if role_party==1
(480 real changes made, 480 to missing)

. replace party6_sincere=. if role_party==1
(480 real changes made, 480 to missing)

. 
. * 2. Creating a variable capturing whether voter are potential strategic deserters (i.e. whetehr they sincere vote is not
>  viable)
. 
. gen potential_strategic=1

. replace potential_strategic=0 if party1_viable==1 & party1_sincere==1
(51 real changes made)

. replace potential_strategic=0 if party2_viable==1 & party2_sincere==1
(169 real changes made)

. replace potential_strategic=0 if party3_viable==1 & party3_sincere==1
(113 real changes made)

. replace potential_strategic=0 if party4_viable==1 & party4_sincere==1
(95 real changes made)

. replace potential_strategic=0 if party5_viable==1 & party5_sincere==1
(125 real changes made)

. replace potential_strategic=0 if party6_viable==1 & party6_sincere==1
(37 real changes made)

. 
. replace potential_strategic=. if role_party==1
(480 real changes made, 480 to missing)

. 
. * 3. Creating a variable capturing whether potential strategic voters voterd for a viable party
. 
. gen strategic_deserter=0

. replace strategic_deserter=1 if potential_strategic==1 & viable_vote_empirics==1
(144 real changes made)

. 
. replace strategic_deserter=. if role_party==1
(480 real changes made, 480 to missing)

. 
. * Calculating ENP
. *****************
. 
. * 1. Calculating a variable capturing the number of voters
. 
. gen number_voters=vote_party1_total+vote_party2_total+vote_party3_total+vote_party4_total+vote_party5_total+vote_party6_t
> otal

. 
. * 2. Calculating variables capturing vote shares
. 
. gen voteshare_party1=vote_party1_total/number_voters

. gen voteshare_party2=vote_party2_total/number_voters

. gen voteshare_party3=vote_party3_total/number_voters

. gen voteshare_party4=vote_party4_total/number_voters

. gen voteshare_party5=vote_party5_total/number_voters

. gen voteshare_party6=vote_party6_total/number_voters

. 
. * 3. Calculating variable capturing ENP
. 
. bysort election_id: gen ENP=1 / ( (voteshare_party1^2) + (voteshare_party2^2)  + (voteshare_party3^2) + (voteshare_party4
> ^2)  + (voteshare_party5^2)  + (voteshare_party6^2))

. 
. * Calculating degree of reduction (parties)
. *******************************************
. 
. * 1. Caclulating a variable capturing the maximum ENP for parties
. 
. gen ENP_max_party=1/( ((1.5/11)^2)+((2/11)^2)+((2/11)^2)+((2/11)^2)+((2/11)^2)+((1.5/11)^2)) if uniform_distribution==1
(680 missing values generated)

. replace ENP_max_party=1/( ((3/11)^2)+((1/11)^2)+((1.5/11)^2)+((1.5/11)^2)+((1/11)^2)+((3/11)^2)) if uniform_distribution=
> =0
(680 real changes made)

. 
. * 2. Caclulating a variable capturing the minimal ENP for parties
. 
. gen ENP_min_party=1/ ( ((3.5/11)^2)+((5/11)^2)+((2.5/11)^2)) if uniform_distribution==1
(680 missing values generated)

. replace ENP_min_party=1/ ( ((5.5/11)^2)+((2/11)^2)+((3.5/11)^2)) if uniform_distribution==0
(680 real changes made)

. 
. * 3. Calculating a variable capturing what would be the ENP in the sincere votes scenario in all parties configurations
. 
. gen number_parties=(stay_party1_all+stay_party2_all+stay_party3_all+stay_party4_all+stay_party5_all+stay_party6_all)

. 
. gen ENP_party=1/ ( ((3.5/11)^2)+((5/11)^2)+((2.5/11)^2)) if uniform_distribution==1 & stay_party1_all==1 & stay_party4_al
> l==1 & stay_party6_all==1 & number_parties==3
(1360 missing values generated)

. replace ENP_party=1/ ( ((3.5/11)^2)+((5/11)^2)+((2.5/11)^2)) if uniform_distribution==1 & stay_party6_all==1 & stay_party
> 3_all==1 & stay_party1_all==1 & number_parties==3
(17 real changes made)

. 
. replace ENP_party=1/ ( ((4.5/11)^2)+((4/11)^2)+((2.5/11)^2)) if uniform_distribution==1 & stay_party2_all==1 & stay_party
> 4_all==1 & stay_party6_all==1 & number_parties==3
(17 real changes made)

. replace ENP_party=1/ ( ((3.5/11)^2)+((3/11)^2)+((4.5/11)^2)) if uniform_distribution==1 & stay_party2_all==1 & stay_party
> 3_all==1 & stay_party5_all==1 & number_parties==3
(51 real changes made)

. 
. replace ENP_party=1/ ( ((3.5/11)^2)+((3/11)^2)+((4.5/11)^2)) if uniform_distribution==1 & stay_party2_all==1 & stay_party
> 3_all==1 & stay_party5_all==1 & number_parties==3
(0 real changes made)

. replace ENP_party=1/ ( ((3.5/11)^2)+((3/11)^2)+((4.5/11)^2)) if uniform_distribution==1 & stay_party5_all==1 & stay_party
> 4_all==1 & stay_party2_all==1 & number_parties==3
(34 real changes made)

. 
. replace ENP_party=1/ ( ((3.5/11)^2)+((4/11)^2)+((3.5/11)^2)) if uniform_distribution==1 & stay_party1_all==1 & stay_party
> 4_all==1 & stay_party5_all==1 & number_parties==3
(0 real changes made)

. replace ENP_party=1/ ( ((3.5/11)^2)+((4/11)^2)+((3.5/11)^2)) if uniform_distribution==1 & stay_party6_all==1 & stay_party
> 3_all==1 & stay_party4_all==1 & number_parties==3
(0 real changes made)

. 
. replace ENP_party=1/ ( ((4.5/11)^2)+((3/11)^2)+((2/11)^2) + ((1.5/11)^2)) if uniform_distribution==1 & stay_party1_all==0
>  & stay_party3_all==0 & number_parties==4
(17 real changes made)

. replace ENP_party=1/ ( ((4.5/11)^2)+((3/11)^2)+((2/11)^2) + ((1.5/11)^2)) if uniform_distribution==1 & stay_party6_all==0
>  & stay_party4_all==0 & number_parties==4
(0 real changes made)

. 
. replace ENP_party=1/ ( ((3.5/11)^2)+((4/11)^2)+((2/11)^2) + ((1.5/11)^2)) if uniform_distribution==1 & stay_party1_all==0
>  & stay_party4_all==0 & number_parties==4
(51 real changes made)

. replace ENP_party=1/ ( ((3.5/11)^2)+((4/11)^2)+((2/11)^2) + ((1.5/11)^2)) if uniform_distribution==1 & stay_party6_all==0
>  & stay_party3_all==0 & number_parties==4
(51 real changes made)

. 
. replace ENP_party=1/ ( ((3.5/11)^2)+((2/11)^2)+((4/11)^2) + ((1.5/11)^2)) if uniform_distribution==1 & stay_party1_all==0
>  & stay_party5_all==0 & number_parties==4
(34 real changes made)

. replace ENP_party=1/ ( ((3.5/11)^2)+((2/11)^2)+((4/11)^2) + ((1.5/11)^2)) if uniform_distribution==1 & stay_party6_all==0
>  & stay_party2_all==0 & number_parties==4
(17 real changes made)

. 
. replace ENP_party=1/ ( ((3.5/11)^2)+((4/11)^2)+((2/11)^2) + ((1.5/11)^2)) if uniform_distribution==1 & stay_party2_all==0
>  & stay_party3_all==0 & number_parties==4
(17 real changes made)

. replace ENP_party=1/ ( ((3.5/11)^2)+((4/11)^2)+((2/11)^2) + ((1.5/11)^2)) if uniform_distribution==1 & stay_party5_all==0
>  & stay_party4_all==0 & number_parties==4
(34 real changes made)

. 
. replace ENP_party=1/ ( ((2.5/11)^2)+((4/11)^2)+((3/11)^2) + ((1.5/11)^2)) if uniform_distribution==1 & stay_party2_all==0
>  & stay_party4_all==0 & number_parties==4
(0 real changes made)

. replace ENP_party=1/ ( ((2.5/11)^2)+((4/11)^2)+((3/11)^2) + ((1.5/11)^2)) if uniform_distribution==1 & stay_party5_all==0
>  & stay_party3_all==0 & number_parties==4
(0 real changes made)

. 
. replace ENP_party=1/ ( ((3.5/11)^2)+((2/11)^2)+((2/11)^2) + ((3.5/11)^2)) if uniform_distribution==1 & stay_party1_all==0
>  & stay_party6_all==0 & number_parties==4
(51 real changes made)

. 
. replace ENP_party=1/ ( ((2.5/11)^2)+((3/11)^2)+((3/11)^2) + ((2.5/11)^2)) if uniform_distribution==1 & stay_party2_all==0
>  & stay_party5_all==0 & number_parties==4
(0 real changes made)

. 
. replace ENP_party=1/ ( ((3.5/11)^2)+((2/11)^2)+((2/11)^2) +((2/11)^2) + ((1.5/11)^2)) if uniform_distribution==1 & stay_p
> arty1_all==0 & number_parties==5
(102 real changes made)

. replace ENP_party=1/ ( ((3.5/11)^2)+((2/11)^2)+((2/11)^2) +((2/11)^2) + ((1.5/11)^2)) if uniform_distribution==1 & stay_p
> arty6_all==0 & number_parties==5
(68 real changes made)

. 
. replace ENP_party=1/ ( ((1.5/11)^2)+((3/11)^2)+((3/11)^2) +((2/11)^2) + ((1.5/11)^2)) if uniform_distribution==1 & stay_p
> arty3_all==0 & number_parties==5
(17 real changes made)

. replace ENP_party=1/ ( ((1.5/11)^2)+((3/11)^2)+((3/11)^2) +((2/11)^2) + ((1.5/11)^2)) if uniform_distribution==1 & stay_p
> arty4_all==0 & number_parties==5
(68 real changes made)

. 
. replace ENP_party=1/ ( ((2.5/11)^2)+((3/11)^2)+((2/11)^2) +((2/11)^2) + ((1.5/11)^2)) if uniform_distribution==1 & stay_p
> arty2_all==0 & number_parties==5
(0 real changes made)

. replace ENP_party=1/ ( ((2.5/11)^2)+((3/11)^2)+((2/11)^2) +((2/11)^2) + ((1.5/11)^2)) if uniform_distribution==1 & stay_p
> arty5_all==0 & number_parties==5
(0 real changes made)

. 
. replace ENP_party=1/ ( ((4.5/11)^2)+((3/11)^2)+((3.5/11)^2)) if uniform_distribution==0 & stay_party1_all==1 & stay_party
> 4_all==1 & stay_party6_all==1 & number_parties==3
(0 real changes made)

. replace ENP_party=1/ ( ((4.5/11)^2)+((3/11)^2)+((2.5/11)^2)) if uniform_distribution==0 & stay_party6_all==1 & stay_party
> 3_all==1 & stay_party1_all==1 & number_parties==3
(0 real changes made)

. 
. replace ENP_party=1/ ( ((5.5/11)^2)+((2/11)^2)+((3.5/11)^2)) if uniform_distribution==0 & stay_party2_all==1 & stay_party
> 4_all==1 & stay_party6_all==1 & number_parties==3
(34 real changes made)

. replace ENP_party=1/ ( ((5.5/11)^2)+((2/11)^2)+((3.5/11)^2)) if uniform_distribution==0 & stay_party2_all==1 & stay_party
> 3_all==1 & stay_party5_all==1 & number_parties==3
(0 real changes made)

. 
. replace ENP_party=1/ ( ((4/11)^2)+((2/11)^2)+((5.5/11)^2)) if uniform_distribution==0 & stay_party2_all==1 & stay_party3_
> all==1 & stay_party5_all==1 & number_parties==3
(0 real changes made)

. replace ENP_party=1/ ( ((4/11)^2)+((2/11)^2)+((5.5/11)^2)) if uniform_distribution==0 & stay_party5_all==1 & stay_party4_
> all==1 & stay_party2_all==1 & number_parties==3
(17 real changes made)

. 
. replace ENP_party=1/ ( ((4.5/11)^2)+((2.5/11)^2)+((4/11)^2)) if uniform_distribution==0 & stay_party1_all==1 & stay_party
> 4_all==1 & stay_party5_all==1 & number_parties==3
(0 real changes made)

. replace ENP_party=1/ ( ((4.5/11)^2)+((2.5/11)^2)+((4/11)^2)) if uniform_distribution==0 & stay_party6_all==1 & stay_party
> 3_all==1 & stay_party4_all==1 & number_parties==3
(0 real changes made)

. 
. replace ENP_party=1/ ( ((5.5/11)^2)+((1.5/11)^2)+((1/11)^2) + ((3/11)^2)) if uniform_distribution==0 & stay_party1_all==0
>  & stay_party3_all==0 & number_parties==4
(51 real changes made)

. replace ENP_party=1/ ( ((5.5/11)^2)+((1.5/11)^2)+((1/11)^2) + ((3/11)^2)) if uniform_distribution==0 & stay_party6_all==0
>  & stay_party4_all==0 & number_parties==4
(51 real changes made)

. 
. replace ENP_party=1/ ( ((4/11)^2)+((2/11)^2)+((2/11)^2) + ((3/11)^2)) if uniform_distribution==0 & stay_party1_all==0 & s
> tay_party4_all==0 & number_parties==4
(17 real changes made)

. replace ENP_party=1/ ( ((4/11)^2)+((2/11)^2)+((2/11)^2) + ((3/11)^2)) if uniform_distribution==0 & stay_party6_all==0 & s
> tay_party3_all==0 & number_parties==4
(51 real changes made)

. 
. replace ENP_party=1/ ( ((4/11)^2)+((1.5/11)^2)+((2/11)^2) + ((3.5/11)^2)) if uniform_distribution==0 & stay_party1_all==0
>  & stay_party5_all==0 & number_parties==4
(51 real changes made)

. replace ENP_party=1/ ( ((4/11)^2)+((1.5/11)^2)+((2/11)^2) + ((3.5/11)^2)) if uniform_distribution==0 & stay_party6_all==0
>  & stay_party2_all==0 & number_parties==4
(0 real changes made)

. 
. replace ENP_party=1/ ( ((4/11)^2)+((2.5/11)^2)+((1/11)^2) + ((3/11)^2)) if uniform_distribution==0 & stay_party2_all==0 &
>  stay_party3_all==0 & number_parties==4
(34 real changes made)

. replace ENP_party=1/ ( ((4/11)^2)+((2.5/11)^2)+((1/11)^2) + ((3/11)^2)) if uniform_distribution==0 & stay_party5_all==0 &
>  stay_party4_all==0 & number_parties==4
(17 real changes made)

. 
. replace ENP_party=1/ ( ((3.5/11)^2)+((2.5/11)^2)+((2/11)^2) + ((3/11)^2)) if uniform_distribution==0 & stay_party2_all==0
>  & stay_party4_all==0 & number_parties==4
(0 real changes made)

. replace ENP_party=1/ ( ((3.5/11)^2)+((2.5/11)^2)+((2/11)^2) + ((3/11)^2)) if uniform_distribution==0 & stay_party5_all==0
>  & stay_party3_all==0 & number_parties==4
(17 real changes made)

. 
. replace ENP_party=1/ ( ((4/11)^2)+((1.5/11)^2)+((1.5/11)^2) + ((4/11)^2)) if uniform_distribution==0 & stay_party1_all==0
>  & stay_party6_all==0 & number_parties==4
(51 real changes made)

. 
. replace ENP_party=1/ ( ((3.5/11)^2)+((2/11)^2)+((2/11)^2) + ((3.5/11)^2)) if uniform_distribution==0 & stay_party2_all==0
>  & stay_party5_all==0 & number_parties==4
(0 real changes made)

. 
. replace ENP_party=1/ ( ((4/11)^2)+((1.5/11)^2)+((1.5/11)^2) +((1/11)^2) + ((3/11)^2)) if uniform_distribution==0 & stay_p
> arty1_all==0 & number_parties==5
(51 real changes made)

. replace ENP_party=1/ ( ((4/11)^2)+((1.5/11)^2)+((1.5/11)^2) +((1/11)^2) + ((3/11)^2)) if uniform_distribution==0 & stay_p
> arty6_all==0 & number_parties==5
(0 real changes made)

. 
. replace ENP_party=1/ ( ((3/11)^2)+((2/11)^2)+((2/11)^2) +((1/11)^2) + ((3/11)^2)) if uniform_distribution==0 & stay_party
> 3_all==0 & number_parties==5
(68 real changes made)

. replace ENP_party=1/ ( ((3/11)^2)+((2/11)^2)+((2/11)^2) +((1/11)^2) + ((3/11)^2)) if uniform_distribution==0 & stay_party
> 4_all==0 & number_parties==5
(51 real changes made)

. 
. replace ENP_party=1/ ( ((3.5/11)^2)+((2/11)^2)+((1.5/11)^2) +((1/11)^2) + ((3/11)^2)) if uniform_distribution==0 & stay_p
> arty2_all==0 & number_parties==5
(17 real changes made)

. replace ENP_party=1/ ( ((3.5/11)^2)+((2/11)^2)+((1.5/11)^2) +((1/11)^2) + ((3/11)^2)) if uniform_distribution==0 & stay_p
> arty5_all==0 & number_parties==5
(34 real changes made)

. 
. replace ENP_party=ENP_max_party if number_parties==6
(51 real changes made)

. 
. * 4. Calculating the degree of reduction of parties
. 
. gen share_reduction_party=(ENP_max_party-ENP_party)/(ENP_max_party-ENP_min_party)
(51 missing values generated)

. replace share_reduction_party=1 if share_reduction_party>1
(68 real changes made)

. replace share_reduction_party=0 if share_reduction_party<0
(0 real changes made)

. 
. * Calculating degree of reduction (voters)
. ******************************************
. 
. * 1. Caclulating a variable capturing the maximum ENP for voters
. 
. gen ENP_max_voter=ENP_party
(51 missing values generated)

. 
. * 2. Caclulating a variable capturing the minimal ENP for voters
. 
. gen ENP_min_voter=1/ ( ((3.5/11)^2)+((7.5/11)^2)) if uniform_distribution==1 & stay_party2_all==0 & stay_party3_all==0 & 
> stay_party5==0
(1344 missing values generated)

. replace ENP_min_voter=1/ ( ((3.5/11)^2)+((7.5/11)^2)) if uniform_distribution==1 & stay_party5_all==0 & stay_party4_all==
> 0 & stay_party2==0
(49 real changes made)

. 
. replace ENP_min_voter=1/ ( ((3.5/11)^2)+((7.5/11)^2)) if uniform_distribution==1 & stay_party2_all==0 & stay_party3_all==
> 0 & stay_party5==1
(1 real change made)

. replace ENP_min_voter=1/ ( ((3.5/11)^2)+((7.5/11)^2)) if uniform_distribution==1 & stay_party5_all==0 & stay_party4_all==
> 0 & stay_party2==1
(2 real changes made)

. 
. replace ENP_min_voter=1/ ( ((4.5/11)^2)+((6.5/11)^2)) if uniform_distribution==1 & stay_party2_all==1 & stay_party3_all==
> 0
(136 real changes made)

. replace ENP_min_voter=1/ ( ((4.5/11)^2)+((6.5/11)^2)) if uniform_distribution==1 & stay_party5_all==1 & stay_party4_all==
> 0
(170 real changes made)

. 
. replace ENP_min_voter=1/ ( ((4.5/11)^2)+((6.5/11)^2)) if uniform_distribution==0 & stay_party2_all==0 & stay_party3_all==
> 0 & stay_party5==0
(32 real changes made)

. replace ENP_min_voter=1/ ( ((4.5/11)^2)+((6.5/11)^2)) if uniform_distribution==0 & stay_party5_all==0 & stay_party4_all==
> 0 & stay_party2==0
(32 real changes made)

. 
. replace ENP_min_voter=1/ ( ((4.5/11)^2)+((6.5/11)^2)) if uniform_distribution==0 & stay_party2_all==0 & stay_party3_all==
> 0 & stay_party5==1
(2 real changes made)

. replace ENP_min_voter=1/ ( ((4.5/11)^2)+((6.5/11)^2)) if uniform_distribution==0 & stay_party5_all==0 & stay_party4_all==
> 0 & stay_party2==1
(2 real changes made)

. 
. replace ENP_min_voter=1/ ( ((5/11)^2)+((6/11)^2)) if uniform_distribution==0 & stay_party2_all==1 & stay_party3_all==0
(238 real changes made)

. replace ENP_min_voter=1/ ( ((5/11)^2)+((6/11)^2)) if uniform_distribution==0 & stay_party5_all==1 & stay_party4_all==0
(153 real changes made)

. 
. replace ENP_min_voter=1/ ( ((5.5/11)^2)+((5.5/11)^2)) if stay_party3_all==1 & stay_party4_all==1
(527 real changes made)

. 
. * 3. Calculating the degree of reduction of voters
. 
. gen share_reduction_voter=(ENP_max_voter-ENP)/(ENP_max_voter-ENP_min_voter)
(51 missing values generated)

. replace share_reduction_voter=1 if share_reduction_voter>1
(102 real changes made)

. replace share_reduction_voter=0 if share_reduction_voter<0
(221 real changes made)

. 
. ***********
. * Analyses*
. ***********
. 
. * Winning rate of each party (Table 3)
. **************************************
. 
. tab party win if role_party==1, ro

+----------------+
| Key            |
|----------------|
|   frequency    |
| row percentage |
+----------------+

           |          win
     party |         0          1 |     Total
-----------+----------------------+----------
         1 |        77          3 |        80 
           |     96.25       3.75 |    100.00 
-----------+----------------------+----------
         2 |        57         23 |        80 
           |     71.25      28.75 |    100.00 
-----------+----------------------+----------
         3 |        58         22 |        80 
           |     72.50      27.50 |    100.00 
-----------+----------------------+----------
         4 |        59         21 |        80 
           |     73.75      26.25 |    100.00 
-----------+----------------------+----------
         5 |        74          6 |        80 
           |     92.50       7.50 |    100.00 
-----------+----------------------+----------
         6 |        75          5 |        80 
           |     93.75       6.25 |    100.00 
-----------+----------------------+----------
     Total |       400         80 |       480 
           |     83.33      16.67 |    100.00 


. tab party win if equal_repartition==1 & role_party==1, ro

+----------------+
| Key            |
|----------------|
|   frequency    |
| row percentage |
+----------------+

           |          win
     party |         0          1 |     Total
-----------+----------------------+----------
         1 |        39          1 |        40 
           |     97.50       2.50 |    100.00 
-----------+----------------------+----------
         2 |        23         17 |        40 
           |     57.50      42.50 |    100.00 
-----------+----------------------+----------
         3 |        29         11 |        40 
           |     72.50      27.50 |    100.00 
-----------+----------------------+----------
         4 |        29         11 |        40 
           |     72.50      27.50 |    100.00 
-----------+----------------------+----------
         5 |        40          0 |        40 
           |    100.00       0.00 |    100.00 
-----------+----------------------+----------
         6 |        40          0 |        40 
           |    100.00       0.00 |    100.00 
-----------+----------------------+----------
     Total |       200         40 |       240 
           |     83.33      16.67 |    100.00 


. tab party win if equal_repartition==0 & role_party==1, ro

+----------------+
| Key            |
|----------------|
|   frequency    |
| row percentage |
+----------------+

           |          win
     party |         0          1 |     Total
-----------+----------------------+----------
         1 |        38          2 |        40 
           |     95.00       5.00 |    100.00 
-----------+----------------------+----------
         2 |        34          6 |        40 
           |     85.00      15.00 |    100.00 
-----------+----------------------+----------
         3 |        29         11 |        40 
           |     72.50      27.50 |    100.00 
-----------+----------------------+----------
         4 |        30         10 |        40 
           |     75.00      25.00 |    100.00 
-----------+----------------------+----------
         5 |        34          6 |        40 
           |     85.00      15.00 |    100.00 
-----------+----------------------+----------
         6 |        35          5 |        40 
           |     87.50      12.50 |    100.00 
-----------+----------------------+----------
     Total |       200         40 |       240 
           |     83.33      16.67 |    100.00 


. tab party win if uniform_distribution==1 & role_party==1, ro 

+----------------+
| Key            |
|----------------|
|   frequency    |
| row percentage |
+----------------+

           |          win
     party |         0          1 |     Total
-----------+----------------------+----------
         1 |        40          0 |        40 
           |    100.00       0.00 |    100.00 
-----------+----------------------+----------
         2 |        31          9 |        40 
           |     77.50      22.50 |    100.00 
-----------+----------------------+----------
         3 |        22         18 |        40 
           |     55.00      45.00 |    100.00 
-----------+----------------------+----------
         4 |        27         13 |        40 
           |     67.50      32.50 |    100.00 
-----------+----------------------+----------
         5 |        40          0 |        40 
           |    100.00       0.00 |    100.00 
-----------+----------------------+----------
         6 |        40          0 |        40 
           |    100.00       0.00 |    100.00 
-----------+----------------------+----------
     Total |       200         40 |       240 
           |     83.33      16.67 |    100.00 


. tab party win if uniform_distribution==0 & role_party==1, ro

+----------------+
| Key            |
|----------------|
|   frequency    |
| row percentage |
+----------------+

           |          win
     party |         0          1 |     Total
-----------+----------------------+----------
         1 |        37          3 |        40 
           |     92.50       7.50 |    100.00 
-----------+----------------------+----------
         2 |        26         14 |        40 
           |     65.00      35.00 |    100.00 
-----------+----------------------+----------
         3 |        36          4 |        40 
           |     90.00      10.00 |    100.00 
-----------+----------------------+----------
         4 |        32          8 |        40 
           |     80.00      20.00 |    100.00 
-----------+----------------------+----------
         5 |        34          6 |        40 
           |     85.00      15.00 |    100.00 
-----------+----------------------+----------
         6 |        35          5 |        40 
           |     87.50      12.50 |    100.00 
-----------+----------------------+----------
     Total |       200         40 |       240 
           |     83.33      16.67 |    100.00 


. 
. * Predicting viable vote (Table 4)
. **********************************
. 
. * 1. Descriptive stats
. 
. tab viable_vote_theory if role_party==0

viable_vote |
    _theory |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |        356       40.45       40.45
          1 |        524       59.55      100.00
------------+-----------------------------------
      Total |        880      100.00

. tab viable_vote_theory equal_repartition if role_party==0, chi col

+-------------------+
| Key               |
|-------------------|
|     frequency     |
| column percentage |
+-------------------+

viable_vot |   equal_repartition
  e_theory |         0          1 |     Total
-----------+----------------------+----------
         0 |       174        182 |       356 
           |     39.55      41.36 |     40.45 
-----------+----------------------+----------
         1 |       266        258 |       524 
           |     60.45      58.64 |     59.55 
-----------+----------------------+----------
     Total |       440        440 |       880 
           |    100.00     100.00 |    100.00 

          Pearson chi2(1) =   0.3019   Pr = 0.583

. tab viable_vote_theory uniform_distribution if role_party==0, chi col

+-------------------+
| Key               |
|-------------------|
|     frequency     |
| column percentage |
+-------------------+

viable_vot | uniform_distribution
  e_theory |         0          1 |     Total
-----------+----------------------+----------
         0 |       193        163 |       356 
           |     43.86      37.05 |     40.45 
-----------+----------------------+----------
         1 |       247        277 |       524 
           |     56.14      62.95 |     59.55 
-----------+----------------------+----------
     Total |       440        440 |       880 
           |    100.00     100.00 |    100.00 

          Pearson chi2(1) =   4.2456   Pr = 0.039

. 
. tab viable_vote_empirics if role_party==0

viable_vote |
  _empirics |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |        184       20.91       20.91
          1 |        696       79.09      100.00
------------+-----------------------------------
      Total |        880      100.00

. tab viable_vote_empirics equal_repartition if role_party==0, chi col

+-------------------+
| Key               |
|-------------------|
|     frequency     |
| column percentage |
+-------------------+

viable_vot |   equal_repartition
e_empirics |         0          1 |     Total
-----------+----------------------+----------
         0 |        96         88 |       184 
           |     21.82      20.00 |     20.91 
-----------+----------------------+----------
         1 |       344        352 |       696 
           |     78.18      80.00 |     79.09 
-----------+----------------------+----------
     Total |       440        440 |       880 
           |    100.00     100.00 |    100.00 

          Pearson chi2(1) =   0.4398   Pr = 0.507

. tab viable_vote_empirics uniform_distribution if role_party==0, chi col

+-------------------+
| Key               |
|-------------------|
|     frequency     |
| column percentage |
+-------------------+

viable_vot | uniform_distribution
e_empirics |         0          1 |     Total
-----------+----------------------+----------
         0 |       101         83 |       184 
           |     22.95      18.86 |     20.91 
-----------+----------------------+----------
         1 |       339        357 |       696 
           |     77.05      81.14 |     79.09 
-----------+----------------------+----------
     Total |       440        440 |       880 
           |    100.00     100.00 |    100.00 

          Pearson chi2(1) =   2.2264   Pr = 0.136

. 
. * 2. Caluclating number of alliances 
. 
. bysort election_id: egen number_temp3=total(response_type) if initiator==1 & role==1
(1120 missing values generated)

. bysort election_id: egen number_alliances=max(number_temp3)

. 
. * 3. Running regressions
. 
. logit viable_vote_theory number_alliances uniform_distribution equal_repartition election voter_central serie i.session  
> if role_party==0

Iteration 0:   log likelihood =  -593.8343  
Iteration 1:   log likelihood = -525.83582  
Iteration 2:   log likelihood = -525.35284  
Iteration 3:   log likelihood = -525.35261  
Iteration 4:   log likelihood = -525.35261  

Logistic regression                               Number of obs   =        880
                                                  LR chi2(9)      =     136.96
                                                  Prob > chi2     =     0.0000
Log likelihood = -525.35261                       Pseudo R2       =     0.1153

--------------------------------------------------------------------------------------
  viable_vote_theory |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
    number_alliances |   .2758434    .103845     2.66   0.008     .0723109    .4793759
uniform_distribution |   .3273695   .1494779     2.19   0.029     .0343981    .6203408
   equal_repartition |  -.1608614   .1517714    -1.06   0.289    -.4583278     .136605
            election |   .0110301   .0527152     0.21   0.834    -.0922898    .1143501
       voter_central |  -.4134182   .0490602    -8.43   0.000    -.5095745    -.317262
              series |   .0158942   .2718144     0.06   0.953    -.5168522    .5486406
                     |
             session |
                  2  |   .6770074   .2205739     3.07   0.002     .2446906    1.109324
                  3  |  -.6436342   .2063381    -3.12   0.002    -1.048049   -.2392189
                  4  |  -.3823714   .2058607    -1.86   0.063     -.785851    .0211082
                     |
               _cons |   .9542887     .32471     2.94   0.003     .3178689    1.590709
--------------------------------------------------------------------------------------

. margins, dydx(*) atmeans

Conditional marginal effects                      Number of obs   =        880
Model VCE    : OIM

Expression   : Pr(viable_vote_theory), predict()
dy/dx w.r.t. : number_alliances uniform_distribution equal_repartition election voter_central series 2.session 3.session
               4.session
at           : number_all~s    =      1.7375 (mean)
               uniform_di~n    =          .5 (mean)
               equal_repa~n    =          .5 (mean)
               election        =        10.5 (mean)
               voter_cent~l    =    2.727273 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

--------------------------------------------------------------------------------------
                     |            Delta-method
                     |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
    number_alliances |   .0654729   .0246293     2.66   0.008     .0172004    .1137453
uniform_distribution |   .0777028   .0354938     2.19   0.029     .0081362    .1472695
   equal_repartition |  -.0381813   .0360198    -1.06   0.289    -.1087788    .0324162
            election |   .0026181   .0125125     0.21   0.834     -.021906    .0271421
       voter_central |   -.098127   .0115467    -8.50   0.000     -.120758   -.0754959
              series |   .0037726   .0645164     0.06   0.953    -.1226772    .1302224
                     |
             session |
                  2  |   .1394493   .0446961     3.12   0.002     .0518466     .227052
                  3  |  -.1576156   .0496916    -3.17   0.002    -.2550094   -.0602218
                  4  |  -.0924091   .0494658    -1.87   0.062    -.1893602     .004542
--------------------------------------------------------------------------------------
Note: dy/dx for factor levels is the discrete change from the base level.

. logit viable_vote_empirics number_alliances uniform_distribution equal_repartition election voter_central serie i.session
>  if role_party==0

Iteration 0:   log likelihood = -451.21974  
Iteration 1:   log likelihood = -440.10174  
Iteration 2:   log likelihood = -439.92887  
Iteration 3:   log likelihood = -439.92881  
Iteration 4:   log likelihood = -439.92881  

Logistic regression                               Number of obs   =        880
                                                  LR chi2(9)      =      22.58
                                                  Prob > chi2     =     0.0072
Log likelihood = -439.92881                       Pseudo R2       =     0.0250

--------------------------------------------------------------------------------------
viable_vote_empirics |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
    number_alliances |   .2793356   .1180762     2.37   0.018     .0479104    .5107608
uniform_distribution |   .2790569   .1705342     1.64   0.102     -.055184    .6132977
   equal_repartition |   .0228126   .1721661     0.13   0.895    -.3146267    .3602519
            election |   .0826961   .0599341     1.38   0.168    -.0347725    .2001647
       voter_central |  -.0972322    .052876    -1.84   0.066    -.2008671    .0064028
              series |  -.4591761   .3093898    -1.48   0.138    -1.065569    .1472167
                     |
             session |
                  2  |     -.1948   .2561417    -0.76   0.447    -.6968285    .3072285
                  3  |   -.543851   .2440923    -2.23   0.026    -1.022263   -.0654388
                  4  |   -.472451   .2450533    -1.93   0.054    -.9527467    .0078447
                     |
               _cons |   1.586877   .3775011     4.20   0.000     .8469887    2.326766
--------------------------------------------------------------------------------------

. margins, dydx(*) atmeans

Conditional marginal effects                      Number of obs   =        880
Model VCE    : OIM

Expression   : Pr(viable_vote_empirics), predict()
dy/dx w.r.t. : number_alliances uniform_distribution equal_repartition election voter_central series 2.session 3.session
               4.session
at           : number_all~s    =      1.7375 (mean)
               uniform_di~n    =          .5 (mean)
               equal_repa~n    =          .5 (mean)
               election        =        10.5 (mean)
               voter_cent~l    =    2.727273 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

--------------------------------------------------------------------------------------
                     |            Delta-method
                     |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
    number_alliances |   .0449813   .0188976     2.38   0.017     .0079427    .0820199
uniform_distribution |   .0449364   .0273665     1.64   0.101    -.0087009    .0985737
   equal_repartition |   .0036735   .0277245     0.13   0.895    -.0506656    .0580126
            election |   .0133165   .0096359     1.38   0.167    -.0055696    .0322026
       voter_central |  -.0156573   .0084811    -1.85   0.065      -.03228    .0009655
              series |   -.073941   .0497117    -1.49   0.137    -.1713741    .0234922
                     |
             session |
                  2  |  -.0275778   .0362305    -0.76   0.447    -.0985883    .0434328
                  3  |  -.0860178   .0381884    -2.25   0.024    -.1608657   -.0111698
                  4  |  -.0731135    .037558    -1.95   0.052    -.1467258    .0004988
--------------------------------------------------------------------------------------
Note: dy/dx for factor levels is the discrete change from the base level.

. 
. 
. * 4. Calculating predicted probabilities
. 
. quietly logit viable_vote_theory number_alliances uniform_distribution equal_repartition election serie i.session  if rol
> e_party==0

. margins, atmeans at(uniform_distribution=(0 1))

Adjusted predictions                              Number of obs   =        880
Model VCE    : OIM

Expression   : Pr(viable_vote_theory), predict()

1._at        : number_all~s    =      1.7375 (mean)
               uniform_di~n    =           0
               equal_repa~n    =          .5 (mean)
               election        =        10.5 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

2._at        : number_all~s    =      1.7375 (mean)
               uniform_di~n    =           1
               equal_repa~n    =          .5 (mean)
               election        =        10.5 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .5664709   .0247979    22.84   0.000     .5178679    .6150739
          2  |   .6373238    .023378    27.26   0.000     .5915037    .6831439
------------------------------------------------------------------------------

. margins, atmeans at(equal_repartition=(0 1))

Adjusted predictions                              Number of obs   =        880
Model VCE    : OIM

Expression   : Pr(viable_vote_theory), predict()

1._at        : number_all~s    =      1.7375 (mean)
               uniform_di~n    =          .5 (mean)
               equal_repa~n    =           0
               election        =        10.5 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

2._at        : number_all~s    =      1.7375 (mean)
               uniform_di~n    =          .5 (mean)
               equal_repa~n    =           1
               election        =        10.5 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .6198489   .0241682    25.65   0.000     .5724802    .6672176
          2  |   .5847557   .0245672    23.80   0.000     .5366049    .6329066
------------------------------------------------------------------------------

. 
. quietly logit viable_vote_empirics number_alliances uniform_distribution equal_repartition election serie i.session if ro
> le_party==0

. margins, atmeans at(uniform_distribution=(0 1))

Adjusted predictions                              Number of obs   =        880
Model VCE    : OIM

Expression   : Pr(viable_vote_empirics), predict()

1._at        : number_all~s    =      1.7375 (mean)
               uniform_di~n    =           0
               equal_repa~n    =          .5 (mean)
               election        =        10.5 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

2._at        : number_all~s    =      1.7375 (mean)
               uniform_di~n    =           1
               equal_repa~n    =          .5 (mean)
               election        =        10.5 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .7737394   .0202387    38.23   0.000     .7340722    .8134065
          2  |   .8186927   .0186474    43.90   0.000     .7821445    .8552409
------------------------------------------------------------------------------

. margins, atmeans at(equal_repartition=(0 1))

Adjusted predictions                              Number of obs   =        880
Model VCE    : OIM

Expression   : Pr(viable_vote_empirics), predict()

1._at        : number_all~s    =      1.7375 (mean)
               uniform_di~n    =          .5 (mean)
               equal_repa~n    =           0
               election        =        10.5 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

2._at        : number_all~s    =      1.7375 (mean)
               uniform_di~n    =          .5 (mean)
               equal_repa~n    =           1
               election        =        10.5 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .7953035   .0197494    40.27   0.000     .7565954    .8340115
          2  |   .7989698   .0194787    41.02   0.000     .7607922    .8371474
------------------------------------------------------------------------------

. 
. * 5. Describing strategic deserters
. 
. tab strategic_deserter potential_strategic, ro col

+-------------------+
| Key               |
|-------------------|
|     frequency     |
|  row percentage   |
| column percentage |
+-------------------+

strategic_ |  potential_strategic
  deserter |         0          1 |     Total
-----------+----------------------+----------
         0 |       590        146 |       736 
           |     80.16      19.84 |    100.00 
           |    100.00      50.34 |     83.64 
-----------+----------------------+----------
         1 |         0        144 |       144 
           |      0.00     100.00 |    100.00 
           |      0.00      49.66 |     16.36 
-----------+----------------------+----------
     Total |       590        290 |       880 
           |     67.05      32.95 |    100.00 
           |    100.00     100.00 |    100.00 


. tab uniform_distribution potential_strategic, ro col

+-------------------+
| Key               |
|-------------------|
|     frequency     |
|  row percentage   |
| column percentage |
+-------------------+

uniform_di |  potential_strategic
stribution |         0          1 |     Total
-----------+----------------------+----------
         0 |       275        165 |       440 
           |     62.50      37.50 |    100.00 
           |     46.61      56.90 |     50.00 
-----------+----------------------+----------
         1 |       315        125 |       440 
           |     71.59      28.41 |    100.00 
           |     53.39      43.10 |     50.00 
-----------+----------------------+----------
     Total |       590        290 |       880 
           |     67.05      32.95 |    100.00 
           |    100.00     100.00 |    100.00 


. 
. * Predicting alliances (Table 5)
. ********************************
. 
. * 1. Descriptive stats
. 
. tab response_type if role_party==1 & initiator==1

response_ty |
         pe |      Freq.     Percent        Cum.
------------+-----------------------------------
          0 |        101       42.08       42.08
          1 |        139       57.92      100.00
------------+-----------------------------------
      Total |        240      100.00

. tab response_type equal_repartition if role_party==1 & initiator==1, chi col

+-------------------+
| Key               |
|-------------------|
|     frequency     |
| column percentage |
+-------------------+

response_t |   equal_repartition
       ype |         0          1 |     Total
-----------+----------------------+----------
         0 |        56         45 |       101 
           |     46.67      37.50 |     42.08 
-----------+----------------------+----------
         1 |        64         75 |       139 
           |     53.33      62.50 |     57.92 
-----------+----------------------+----------
     Total |       120        120 |       240 
           |    100.00     100.00 |    100.00 

          Pearson chi2(1) =   2.0685   Pr = 0.150

. tab response_type uniform_distribution if role_party==1 & initiator==1, chi col

+-------------------+
| Key               |
|-------------------|
|     frequency     |
| column percentage |
+-------------------+

response_t | uniform_distribution
       ype |         0          1 |     Total
-----------+----------------------+----------
         0 |        49         52 |       101 
           |     40.83      43.33 |     42.08 
-----------+----------------------+----------
         1 |        71         68 |       139 
           |     59.17      56.67 |     57.92 
-----------+----------------------+----------
     Total |       120        120 |       240 
           |    100.00     100.00 |    100.00 

          Pearson chi2(1) =   0.1539   Pr = 0.695

. 
. * 2. Running regressions
. 
. logit response_type uniform_distribution equal_repartition election party_central serie i.session if initiator==1 & role_
> party==1

Iteration 0:   log likelihood = -163.33429  
Iteration 1:   log likelihood = -158.97646  
Iteration 2:   log likelihood = -158.96322  
Iteration 3:   log likelihood = -158.96322  

Logistic regression                               Number of obs   =        240
                                                  LR chi2(8)      =       8.74
                                                  Prob > chi2     =     0.3645
Log likelihood = -158.96322                       Pseudo R2       =     0.0268

--------------------------------------------------------------------------------------
       response_type |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
uniform_distribution |  -.1189495    .266763    -0.45   0.656    -.6417953    .4038964
   equal_repartition |   .3897469   .2666511     1.46   0.144    -.1328797    .9123734
            election |   .0177271    .094155     0.19   0.851    -.1668133    .2022675
       party_central |   .2136293   .2841652     0.75   0.452    -.3433243    .7705829
              series |   .1595365   .4854501     0.33   0.742    -.7919282    1.111001
                     |
             session |
                  2  |   .1571059   .3828697     0.41   0.682    -.5933049    .9075167
                  3  |  -.2132622   .3736525    -0.57   0.568    -.9456077    .5190833
                  4  |   -.278079   .3752388    -0.74   0.459    -1.013534    .4573756
                     |
               _cons |  -.3750352   .4885961    -0.77   0.443    -1.332666    .5825955
--------------------------------------------------------------------------------------

. margins, dydx(*) atmeans

Conditional marginal effects                      Number of obs   =        240
Model VCE    : OIM

Expression   : Pr(response_type), predict()
dy/dx w.r.t. : uniform_distribution equal_repartition election party_central series 2.session 3.session 4.session
at           : uniform_di~n    =          .5 (mean)
               equal_repa~n    =          .5 (mean)
               election        =        10.5 (mean)
               party_cent~l    =    .3333333 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

--------------------------------------------------------------------------------------
                     |            Delta-method
                     |      dy/dx   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
uniform_distribution |   -.028928   .0648602    -0.45   0.656    -.1560518    .0981957
   equal_repartition |   .0947849   .0648142     1.46   0.144    -.0322487    .2218184
            election |   .0043112   .0228979     0.19   0.851     -.040568    .0491903
       party_central |   .0519538   .0690973     0.75   0.452    -.0834744    .1873819
              series |   .0387986   .1180554     0.33   0.742    -.1925856    .2701829
                     |
             session |
                  2  |   .0369489   .0899361     0.41   0.681    -.1393225    .2132204
                  3  |  -.0520098   .0909431    -0.57   0.567    -.2302549    .1262353
                  4  |  -.0680949   .0916005    -0.74   0.457    -.2476285    .1114387
--------------------------------------------------------------------------------------
Note: dy/dx for factor levels is the discrete change from the base level.

. 
. * 3. Calculating predicted probabilities
. 
. quietly logit response_type uniform_distribution equal_repartition election serie i.session if initiator==1 & role_party=
> =1

. margins, atmeans at(uniform_distribution=(0 1))

Adjusted predictions                              Number of obs   =        240
Model VCE    : OIM

Expression   : Pr(response_type), predict()

1._at        : uniform_di~n    =           0
               equal_repa~n    =          .5 (mean)
               election        =        10.5 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

2._at        : uniform_di~n    =           1
               equal_repa~n    =          .5 (mean)
               election        =        10.5 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .5966404   .0460214    12.96   0.000     .5064401    .6868406
          2  |   .5677766   .0455808    12.46   0.000       .47844    .6571133
------------------------------------------------------------------------------

. margins, atmeans at(equal_repartition=(0 1))

Adjusted predictions                              Number of obs   =        240
Model VCE    : OIM

Expression   : Pr(response_type), predict()

1._at        : uniform_di~n    =          .5 (mean)
               equal_repa~n    =           0
               election        =        10.5 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

2._at        : uniform_di~n    =          .5 (mean)
               equal_repa~n    =           1
               election        =        10.5 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .5343768   .0461257    11.59   0.000     .4439721    .6247816
          2  |   .6286774   .0447017    14.06   0.000     .5410636    .7162912
------------------------------------------------------------------------------

. 
. * Summary statistics of reduction (Table 6)
. *******************************************
. 
. sum ENP if subject==1

    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
         ENP |        80     3.13758       .7146   1.457831       4.84

. ttest ENP if subject==1, by(equal_repartition)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |      40    3.175701     .108833    .6883201    2.955565    3.395836
       1 |      40    3.099459    .1180714    .7467493    2.860637    3.338281
---------+--------------------------------------------------------------------
combined |      80     3.13758    .0798947       .7146    2.978553    3.296606
---------+--------------------------------------------------------------------
    diff |            .0762422    .1605786               -.2434452    .3959296
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =   0.4748
Ho: diff = 0                                     degrees of freedom =       78

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.6819         Pr(|T| > |t|) = 0.6363          Pr(T > t) = 0.3181

. ttest ENP if subject==1, by(uniform_distribution)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |      40    3.274807    .1014899    .6418784    3.069524     3.48009
       1 |      40    3.000352     .120806    .7640444    2.755999    3.244706
---------+--------------------------------------------------------------------
combined |      80     3.13758    .0798947       .7146    2.978553    3.296606
---------+--------------------------------------------------------------------
    diff |            .2744546    .1577793               -.0396597     .588569
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =   1.7395
Ho: diff = 0                                     degrees of freedom =       78

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.9571         Pr(|T| > |t|) = 0.0859          Pr(T > t) = 0.0429

. 
. sum share_reduction_party if subject==1

    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
share_redu~y |        80    .6032965    .2745585          0          1

. ttest share_reduction_party if subject==1, by(equal_repartition)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |      40    .5652117    .0457271    .2892038    .4727198    .6577036
       1 |      40    .6413813    .0406459     .257067    .5591673    .7235953
---------+--------------------------------------------------------------------
combined |      80    .6032965    .0306966    .2745585    .5421965    .6643965
---------+--------------------------------------------------------------------
    diff |           -.0761696    .0611805               -.1979707    .0456315
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =  -1.2450
Ho: diff = 0                                     degrees of freedom =       78

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.1084         Pr(|T| > |t|) = 0.2169          Pr(T > t) = 0.8916

. ttest share_reduction_party if subject==1, by(uniform_distribution)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |      40    .5743053    .0468268    .2961587    .4795891    .6690214
       1 |      40    .6322878    .0397692    .2515224     .551847    .7127285
---------+--------------------------------------------------------------------
combined |      80    .6032965    .0306966    .2745585    .5421965    .6643965
---------+--------------------------------------------------------------------
    diff |           -.0579825    .0614356               -.1802915    .0643264
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =  -0.9438
Ho: diff = 0                                     degrees of freedom =       78

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.1741         Pr(|T| > |t|) = 0.3482          Pr(T > t) = 0.8259

. 
. sum share_reduction_voter if subject==1

    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
share_redu~r |        80    .3822583    .3225602          0          1

. ttest share_reduction_voter if subject==1, by(equal_repartition)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |      40    .4010484    .0499941    .3161903    .2999258    .5021709
       1 |      40    .3634682    .0524541    .3317491    .2573697    .4695667
---------+--------------------------------------------------------------------
combined |      80    .3822583    .0360633    .3225602     .310476    .4540405
---------+--------------------------------------------------------------------
    diff |            .0375802    .0724627                -.106682    .1818423
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =   0.5186
Ho: diff = 0                                     degrees of freedom =       78

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.6973         Pr(|T| > |t|) = 0.6055          Pr(T > t) = 0.3027

. ttest share_reduction_voter if subject==1, by(uniform_distribution)

Two-sample t test with equal variances
------------------------------------------------------------------------------
   Group |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
       0 |      40    .2991588    .0489856     .309812    .2000762    .3982415
       1 |      40    .4653577    .0501521    .3171897    .3639155    .5667999
---------+--------------------------------------------------------------------
combined |      80    .3822583    .0360633    .3225602     .310476    .4540405
---------+--------------------------------------------------------------------
    diff |           -.1661989    .0701058               -.3057687    -.026629
------------------------------------------------------------------------------
    diff = mean(0) - mean(1)                                      t =  -2.3707
Ho: diff = 0                                     degrees of freedom =       78

    Ha: diff < 0                 Ha: diff != 0                 Ha: diff > 0
 Pr(T < t) = 0.0101         Pr(|T| > |t|) = 0.0202          Pr(T > t) = 0.9899

. 
. ttest share_reduction_voter==share_reduction_party if subject==1

Paired t test
------------------------------------------------------------------------------
Variable |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
share_~r |      80    .3822583    .0360633    .3225602     .310476    .4540405
share_~y |      80    .6032965    .0306966    .2745585    .5421965    .6643965
---------+--------------------------------------------------------------------
    diff |      80   -.2210382    .0462113    .4133262   -.3130195    -.129057
------------------------------------------------------------------------------
     mean(diff) = mean(share_reductio~r - share_reductio~y)       t =  -4.7832
 Ho: mean(diff) = 0                              degrees of freedom =       79

 Ha: mean(diff) < 0           Ha: mean(diff) != 0           Ha: mean(diff) > 0
 Pr(T < t) = 0.0000         Pr(|T| > |t|) = 0.0000          Pr(T > t) = 1.0000

. ttest share_reduction_voter==share_reduction_party if subject==1 & equal_repartition==1

Paired t test
------------------------------------------------------------------------------
Variable |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
share_~r |      40    .3634682    .0524541    .3317491    .2573697    .4695667
share_~y |      40    .6413813    .0406459     .257067    .5591673    .7235953
---------+--------------------------------------------------------------------
    diff |      40   -.2779131    .0631207    .3992101   -.4055867   -.1502395
------------------------------------------------------------------------------
     mean(diff) = mean(share_reductio~r - share_reductio~y)       t =  -4.4029
 Ho: mean(diff) = 0                              degrees of freedom =       39

 Ha: mean(diff) < 0           Ha: mean(diff) != 0           Ha: mean(diff) > 0
 Pr(T < t) = 0.0000         Pr(|T| > |t|) = 0.0001          Pr(T > t) = 1.0000

. ttest share_reduction_voter==share_reduction_party if subject==1 & equal_repartition==0

Paired t test
------------------------------------------------------------------------------
Variable |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
share_~r |      40    .4010484    .0499941    .3161903    .2999258    .5021709
share_~y |      40    .5652117    .0457271    .2892038    .4727198    .6577036
---------+--------------------------------------------------------------------
    diff |      40   -.1641634     .067092     .424327   -.2998697    -.028457
------------------------------------------------------------------------------
     mean(diff) = mean(share_reductio~r - share_reductio~y)       t =  -2.4468
 Ho: mean(diff) = 0                              degrees of freedom =       39

 Ha: mean(diff) < 0           Ha: mean(diff) != 0           Ha: mean(diff) > 0
 Pr(T < t) = 0.0095         Pr(|T| > |t|) = 0.0190          Pr(T > t) = 0.9905

. ttest share_reduction_voter==share_reduction_party if subject==1 & uniform_distribution==1

Paired t test
------------------------------------------------------------------------------
Variable |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
share_~r |      40    .4653577    .0501521    .3171897    .3639155    .5667999
share_~y |      40    .6322878    .0397692    .2515224     .551847    .7127285
---------+--------------------------------------------------------------------
    diff |      40   -.1669301    .0634915    .4015555   -.2953537   -.0385064
------------------------------------------------------------------------------
     mean(diff) = mean(share_reductio~r - share_reductio~y)       t =  -2.6292
 Ho: mean(diff) = 0                              degrees of freedom =       39

 Ha: mean(diff) < 0           Ha: mean(diff) != 0           Ha: mean(diff) > 0
 Pr(T < t) = 0.0061         Pr(|T| > |t|) = 0.0122          Pr(T > t) = 0.9939

. ttest share_reduction_voter==share_reduction_party if subject==1 & uniform_distribution==0

Paired t test
------------------------------------------------------------------------------
Variable |     Obs        Mean    Std. Err.   Std. Dev.   [95% Conf. Interval]
---------+--------------------------------------------------------------------
share_~r |      40    .2991588    .0489856     .309812    .2000762    .3982415
share_~y |      40    .5743053    .0468268    .2961587    .4795891    .6690214
---------+--------------------------------------------------------------------
    diff |      40   -.2751464     .066859    .4228536   -.4103815   -.1399113
------------------------------------------------------------------------------
     mean(diff) = mean(share_reductio~r - share_reductio~y)       t =  -4.1153
 Ho: mean(diff) = 0                              degrees of freedom =       39

 Ha: mean(diff) < 0           Ha: mean(diff) != 0           Ha: mean(diff) > 0
 Pr(T < t) = 0.0001         Pr(|T| > |t|) = 0.0002          Pr(T > t) = 0.9999

. 
. * Predicting reduction (Table 7)
. ********************************
. 
. * 1. Expanding dataset and constructing degrees of reduction
. 
. expand 2, generate(id_exp)
(1360 observations created)

. 
. gen share_reduction=share_reduction_voter if id_exp==0
(1360 missing values generated)

. replace share_reduction=share_reduction_party if id_exp==1
(1360 real changes made)

. 
. replace role_party=1 if id_exp==1
(880 real changes made)

. replace role_party=0 if id_exp==0
(480 real changes made)

. 
. * 2. Running regression
. 
. reg share_reduction role_party uniform_distribution equal_repartition election serie i.session if subject==1

      Source |       SS       df       MS              Number of obs =     160
-------------+------------------------------           F(  8,   151) =    5.54
       Model |  3.66073987     8  .457592484           Prob > F      =  0.0000
    Residual |  12.4683423   151  .082571803           R-squared     =  0.2270
-------------+------------------------------           Adj R-squared =  0.1860
       Total |  16.1290822   159  .101440769           Root MSE      =  .28735

--------------------------------------------------------------------------------------
     share_reduction |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
          role_party |   .2210382   .0454345     4.86   0.000     .1312688    .3108077
uniform_distribution |   .1120907   .0454345     2.47   0.015     .0223212    .2018601
   equal_repartition |   .0192947   .0454345     0.42   0.672    -.0704748    .1090642
            election |    .015231   .0160635     0.95   0.345    -.0165073    .0469693
              series |  -.0441128   .0828479    -0.53   0.595    -.2078036    .1195781
                     |
             session |
                  2  |   .0437134   .0642541     0.68   0.497    -.0832398    .1706666
                  3  |  -.0482888   .0642541    -0.75   0.454     -.175242    .0786644
                  4  |  -.1585766   .0642541    -2.47   0.015    -.2855298   -.0316234
                     |
               _cons |   .3077097   .0850002     3.62   0.000     .1397665     .475653
--------------------------------------------------------------------------------------

. 
. * 3. Calculating predicted values
. 
. margins, atmeans at(role_party=(0 1))

Adjusted predictions                              Number of obs   =        160
Model VCE    : OLS

Expression   : Linear prediction, predict()

1._at        : role_party      =           0
               uniform_di~n    =          .5 (mean)
               equal_repa~n    =          .5 (mean)
               election        =        10.5 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

2._at        : role_party      =           1
               uniform_di~n    =          .5 (mean)
               equal_repa~n    =          .5 (mean)
               election        =        10.5 (mean)
               series          =         2.5 (mean)
               1.session       =         .25 (mean)
               2.session       =         .25 (mean)
               3.session       =         .25 (mean)
               4.session       =         .25 (mean)

------------------------------------------------------------------------------
             |            Delta-method
             |     Margin   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
         _at |
          1  |   .3822583   .0321271    11.90   0.000     .3192904    .4452261
          2  |   .6032965   .0321271    18.78   0.000     .5403286    .6662644
------------------------------------------------------------------------------

. 
end of do-file

